import axios from "../../utils/axios"
import '../../mock/api'
import { message } from "antd"
// 查询用户列表
export const queryUserList = data => ({ type: 'queryUserList', data: data })
export const getTodoList = (params) => async (dispatch) => {

    await axios.get("/api/v1/dataSource").then((res) => {
        if (res.code == 0) {
            dispatch(queryUserList(res.result))
        } else {
            message.error(res.msg)
        }
    })
}

